﻿
<span style="color: gray; font-size: 11px; float: right; margin: 5px 20px 12px;">	
<?= $this->oneMessage->getType()->getTitle() ?> | <?= $this->ruDateFormat($this->oneMessage->getCreatedAt()) ?> 
</span>	

<div class="messageContainer">

    <div class="head <?= $this->oneMessage->getType()->getDevTitle() ?>" title="Перейти к <?= $this->oneMessage->getTitle()?>. Подробнее">
    <div style="width: 550px; display: inline-block;">    
		<a id="user" 
               class="userName"
               title="<?= $this->oneMessage->getUser()->getDescription()?>"
               value="<?= $this->oneMessage->getUser()->getUserId() ?>" 
               href="./user/<?=$this->oneMessage->getUser()->getUserId()?>"><?= $this->oneMessage->getUser()->getNickName()?></a>: 
       <?if ($this->type == 'list'):?>
            <a href="./message/<?= $this->oneMessage->getMessageId()?>"><?= $this->oneMessage->getTitle() ?></a>
        <? else: ?>
            <?= $this->oneMessage->getTitle() ?>
		<? endif;?>
		
		<? if ($this->currentUser()->getUserId() && ($this->oneMessage->getUser()->getUserId() == $this->currentUser()->getUserId())):?>
			<a href="./addmessage/<?=$this->oneMessage->getMessageId()?>">ред.</a>
		<? endif;?>
    </div>
		
		
        <div style="display: inline-block;">
           
            <?if($this->oneMessage->getDisplay() == 2):?>
                    прикр.
            <?else:?>
                    <?if($this->oneMessage->getMessageRank()>1):?>
                        Вес: <?= $this->oneMessage->getMessageRank() ?>
                    <?endif;?>	
            <?endif;?>	
		</div>
    </div>
		
    <div class="body">
        <?= ($this->getToCat($this->oneMessage->getText(), $this->type)) ?>
    </div>
	
    <div class="footer">
		
        <div class="rightInfo">
			<?= $this->oneMessage->getSeoOptions()?>
        </div>
    </div>

</div>


